home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / unix / volume22 / et / patch01 < prev    next >
Encoding:
Internet Message Format  |  1990-06-07  |  10.7 KB

  1. Subject:  v22i104:  Error table compiler and library, Patch1
  2. Newsgroups: comp.sources.unix
  3. Approved: rsalz@uunet.UU.NET
  4. X-Checksum-Snefru: 6b4c9d27 72e39b82 526d8ca4 f1f9b529
  5.  
  6. Submitted-by: "Jonathan I. Kamens" <jik@pit-manager.mit.edu>
  7. Posting-number: Volume 22, Issue 104
  8. Archive-name: et/patch1
  9.  
  10.  
  11.   This is official patch number 1 of the com_err package recently
  12. posted (under the name "et") to comp.sources.unix.  Unshar the shar at
  13. the bottom of this message and feed it to patch with your current
  14. working directory set to the directory in which you keep the com_err
  15. sources, and it should create two new files (PATCHLEVEL and README)
  16. and update several others (Makefile, compile_et.c and et_lex.lex.l).
  17.  
  18.   Some of the RCS header strings may not patch properly, so you might
  19. have to apply some portions of the patch by hand.
  20.  
  21.   This patch accomplishes the following:
  22.  
  23. 1. The Makefile has been updated so that it is a little bit cleaner
  24.    and a little bit easier to work with.
  25. 2. A PATCHLEVEL file (with initial value 1) has been created.
  26. 3. A short README file explaining what com_err is, and how to build
  27.    it, has been written.
  28. 4. The library will now compile under A/UX.
  29. 5. The library will not compile under System V systems that use
  30.    <string.h> instead of <strings.h>, and strchr and strrchr instead
  31.    of index and rindex.
  32.  
  33. Jonathan Kamens                          USnail:
  34. MIT Project Athena                11 Ashford Terrace
  35. jik@Athena.MIT.EDU                Allston, MA  02134
  36. Office: 617-253-8495                  Home: 617-782-0710
  37.  
  38. #! /bin/sh
  39. # This is a shell archive.  Remove anything before this line, then unpack
  40. # it by saving it into a file and typing "sh file".  To overwrite existing
  41. # files, type "sh file -c".  You can also feed this as standard input via
  42. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  43. # will see the following message at the end:
  44. #        "End of shell archive."
  45. # Contents:  diff
  46. # Wrapped by jik@pit-manager on Fri Jun  8 00:44:20 1990
  47. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  48. if test -f 'diff' -a "${1}" != "-c" ; then 
  49.   echo shar: Will not clobber existing file \"'diff'\"
  50. else
  51. echo shar: Extracting \"'diff'\" \(8287 characters\)
  52. sed "s/^X//" >'diff' <<'END_OF_FILE'
  53. X*** /tmp/,RCSt1018539    Thu Jun  7 23:46:54 1990
  54. X--- Makefile    Thu Jun  7 23:26:33 1990
  55. X***************
  56. X*** 4,34 ****
  57. X  # Copyright 1987, 1989 MIT Student Information Processing Board
  58. X  # For copyright info, see mit-sipb-copyright.h.
  59. X  #
  60. X! #    $Header: /afs/athena.mit.edu/user/j/jik/src/delete/et/RCS/Makefile,v 1.2 89/11/07 18:56:09 jik Exp $
  61. X  #    $Locker:  $
  62. X  #
  63. X  
  64. X! CFLAGS=    -O
  65. X! LINTFLAGS= -uhvpb
  66. X! LINTFILES= error_message.c et_name.c init_et.c com_err.c # perror.c
  67. X! LIBOBJS= error_message.o et_name.o init_et.o com_err.o # perror.o
  68. X  
  69. X! BINDIR=/usr/athena
  70. X! INCDIR=/usr/include
  71. X! LIBDIR=/usr/athena/lib
  72. X! DOCDIR=/usr/doc/athena
  73. X  DESTDIR=
  74. X  
  75. X! FILES=    Makefile et_name.c error_message.c compile_et.c \
  76. X!         error_table.y et_lex.lex.l init_et.c \
  77. X!         com_err.c com_err.h \
  78. X!         error_table.h mit-sipb-copyright.h \
  79. X!         test.c test1.et test2.et \
  80. X!         compiler.h internal.h \
  81. X!         com_err.texinfo texinfo.tex strcasecmp.c
  82. X! CFILES=    compile_et.c error_table.c error_message.c et_name.c \
  83. X!     init_et.c com_err.c strcasecmp.c
  84. X  
  85. X  #
  86. X  # what to build...
  87. X  #
  88. X--- 4,40 ----
  89. X  # Copyright 1987, 1989 MIT Student Information Processing Board
  90. X  # For copyright info, see mit-sipb-copyright.h.
  91. X  #
  92. X! #    $Header: /afs/athena.mit.edu/user/j/jik/src/delete/et/RCS/Makefile,v 1.7 90/06/07 23:26:23 jik Exp $
  93. X  #    $Locker:  $
  94. X  #
  95. X  
  96. X! RANLIB=     ranlib
  97. X  
  98. X! DEFINES= 
  99. X! CFLAGS=        -O $(DEFINES)
  100. X! LINTFLAGS=     -uhvpb
  101. X! LINTFILES=     error_message.c et_name.c init_et.c com_err.c
  102. X! LIBOBJS=     error_message.o et_name.o init_et.o com_err.o
  103. X! 
  104. X! BINDIR=        /usr/athena
  105. X! INCDIR=        /usr/include
  106. X! LIBDIR=        /usr/athena/lib
  107. X! DOCDIR=        /usr/doc/athena
  108. X  DESTDIR=
  109. X  
  110. X! CFILES=        com_err.c compile_et.c error_message.c et_name.c\
  111. X!         init_et.c strcasecmp.c test.c
  112. X! HFILES=        com_err.h compiler.h error_table.h internal.h\
  113. X!         mit-sipb-copyright.h 
  114. X! MANS=        com_err.3 compile_et.1
  115. X! YACCS=        error_table.y
  116. X! LEXS=        et_lex.lex.l
  117. X! ETS=        test1.et test2.et
  118. X! FILES=        MANIFEST Makefile PATCHLEVEL README\
  119. X!         com_err.texinfo.Z.uu profiled texinfo.tex.Z.uu\
  120. X!         $(CFILES) $(HFILES) $(MANS) $(YACCS) $(LEXS) $(ETS)
  121. X  
  122. X+ 
  123. X  #
  124. X  # what to build...
  125. X  #
  126. X***************
  127. X*** 71,80 ****
  128. X      ${CC} ${CFLAGS} -o compile_et compile_et.o error_table.o\
  129. X          strcasecmp.o -ll
  130. X  
  131. X- et.tar:    ${FILES}
  132. X-     rm -f et.tar
  133. X-     tar cfrlv et.tar ${FILES}
  134. X- 
  135. X  tags:    TAGS
  136. X  
  137. X  com_err.ps : com_err.dvi
  138. X--- 77,82 ----
  139. X***************
  140. X*** 88,96 ****
  141. X      install -c -m 444 mit-sipb-copyright.h \
  142. X                  ${DESTDIR}${INCDIR}/mit-sipb-copyright.h
  143. X      install -c libcom_err.a ${DESTDIR}${LIBDIR}/libcom_err.a
  144. X!     ranlib ${DESTDIR}${LIBDIR}/libcom_err.a
  145. X      install -c libcom_err_p.a ${DESTDIR}${LIBDIR}/libcom_err_p.a
  146. X!     ranlib ${DESTDIR}${LIBDIR}/libcom_err_p.a
  147. X      install -c com_err.texinfo ${DESTDIR}${DOCDIR}/com_err.texinfo
  148. X      install -c com_err.3 ${DESTDIR}/usr/man/man3/com_err.3
  149. X      install -c compile_et.1 ${DESTDIR}/usr/man/man1/compile_et.1
  150. X--- 90,98 ----
  151. X      install -c -m 444 mit-sipb-copyright.h \
  152. X                  ${DESTDIR}${INCDIR}/mit-sipb-copyright.h
  153. X      install -c libcom_err.a ${DESTDIR}${LIBDIR}/libcom_err.a
  154. X!     ${RANLIB} ${DESTDIR}${LIBDIR}/libcom_err.a
  155. X      install -c libcom_err_p.a ${DESTDIR}${LIBDIR}/libcom_err_p.a
  156. X!     ${RANLIB} ${DESTDIR}${LIBDIR}/libcom_err_p.a
  157. X      install -c com_err.texinfo ${DESTDIR}${DOCDIR}/com_err.texinfo
  158. X      install -c com_err.3 ${DESTDIR}/usr/man/man3/com_err.3
  159. X      install -c compile_et.1 ${DESTDIR}/usr/man/man1/compile_et.1
  160. X***************
  161. X*** 102,112 ****
  162. X  
  163. X  libcom_err.a:    $(LIBOBJS)
  164. X      ar cruv libcom_err.a $(LIBOBJS)
  165. X!     ranlib libcom_err.a
  166. X  
  167. X  libcom_err_p.a:    $(LIBOBJS)
  168. X      (cd profiled; ar uv ../libcom_err_p.a $(LIBOBJS); \
  169. X!         ranlib ../libcom_err_p.a)
  170. X  
  171. X  libcom_err.o:    $(LIBOBJS)
  172. X      ld -r -s -o libcom_err.o $(LIBOBJS)
  173. X--- 104,114 ----
  174. X  
  175. X  libcom_err.a:    $(LIBOBJS)
  176. X      ar cruv libcom_err.a $(LIBOBJS)
  177. X!     ${RANLIB} libcom_err.a
  178. X  
  179. X  libcom_err_p.a:    $(LIBOBJS)
  180. X      (cd profiled; ar uv ../libcom_err_p.a $(LIBOBJS); \
  181. X!         ${RANLIB} ../libcom_err_p.a)
  182. X  
  183. X  libcom_err.o:    $(LIBOBJS)
  184. X      ld -r -s -o libcom_err.o $(LIBOBJS)
  185. X***************
  186. X*** 125,130 ****
  187. X--- 127,143 ----
  188. X          et_lex.lex.c \
  189. X          test1.h test1.c test2.h test2.c test \
  190. X          eddep makedep
  191. X+ 
  192. X+ patch: $(FILES)
  193. X+     makepatch $(ARCHIVE)
  194. X+     mv patch com_err.patch`cat PATCHLEVEL`
  195. X+     shar com_err.patch`cat PATCHLEVEL` > com_err.patch`cat PATCHLEVEL`.shar
  196. X+ 
  197. X+ shar: $(FILES)
  198. X+     makekit -oMANIFEST $(FILES)
  199. X+ 
  200. X+ tar: $(ARCHIVE)
  201. X+     tar cvf - $(ARCHIVE) | compress > com_err.tar.Z
  202. X  
  203. X  # for testing
  204. X  test:    test.o test1.o test2.o libcom_err.a
  205. X*** /dev/null    Thu Jun  7 23:46:57 1990
  206. X--- PATCHLEVEL    Thu Jun  7 21:50:52 1990
  207. X***************
  208. X*** 0 ****
  209. X--- 1 ----
  210. X! 1
  211. X*** /dev/null    Thu Jun  7 23:46:58 1990
  212. X--- README    Thu Jun  7 23:04:48 1990
  213. X***************
  214. X*** 0 ****
  215. X--- 1,50 ----
  216. X+                ABOUT THE COM_ERR LIBARY
  217. X+ 
  218. X+   The com_err library was written by members of the Student
  219. X+ Information Processing Board (SIPB) at MIT, to provide a useful
  220. X+ standardized method for dealing with program errors when writing
  221. X+ software.
  222. X+ 
  223. X+   The version of com_err contained here is currently in flux; the
  224. X+ original authors are working on enhancements, although no definite
  225. X+ release date for them has been set.  You should be aware that when the
  226. X+ new version comes out, the programming interface to the library may
  227. X+ change slightly or not-so-slightly, depending on what the authors feel
  228. X+ is needed.
  229. X+ 
  230. X+   The file com_err.texinfo (and texinfo.tex, for processing it)
  231. X+ contains the detailed documenation for the library.  They may be
  232. X+ compressed and uuencoded when you receive them, since they contain
  233. X+ some control characters in their original form.
  234. X+ 
  235. X+ 
  236. X+                  BUILDING IT
  237. X+ 
  238. X+   It should be relatively easy to compile the com_err package on most
  239. X+ architectures.  To do so, make the following changes to the Makefile:
  240. X+ 
  241. X+ 1. Change RANLIB from "ranlib" to some innocuous command like "echo"
  242. X+    if you don't have ranlib on your system.
  243. X+ 
  244. X+ 2. If your system is System V based, add "-DSYSV" to DEFINES.
  245. X+ 
  246. X+ 3. If you plan on installing the library, include files,
  247. X+    documentation and compile_et program, change BINDIR, INCDIR,
  248. X+    LIBDIR, and DOCDIR.
  249. X+ 
  250. X+ After that, you should be all set.
  251. X+ 
  252. X+ 
  253. X+                   QUESTIONS?
  254. X+ 
  255. X+   I didn't write com_err, but I'm willing to answer questions and/or
  256. X+ direct them to someone who can.  See my signature to find out how to
  257. X+ contact me.
  258. X+ 
  259. X+   See the file mit-sipb-copyright.h for copyright and distribution
  260. X+ information.
  261. X+ 
  262. X+ Jonathan Kamens                          USnail:
  263. X+ MIT Project Athena                11 Ashford Terrace
  264. X+ jik@Athena.MIT.EDU                Allston, MA  02134
  265. X+ Office: 617-253-8495                  Home: 617-782-0710
  266. X*** /tmp/,RCSt1018539    Thu Jun  7 23:47:10 1990
  267. X--- compile_et.c    Thu Jun  7 21:49:08 1990
  268. X***************
  269. X*** 8,13 ****
  270. X--- 8,17 ----
  271. X   */
  272. X  
  273. X  #include <stdio.h>
  274. X+ #ifdef _AUX_SOURCE
  275. X+ /* AUX uses caddr_t in <sys/file.h>, and it's defined in <sys/types.h> */
  276. X+ #include <sys/types.h>
  277. X+ #endif
  278. X  #include <sys/file.h>
  279. X  #include <string.h>
  280. X  #include <sys/param.h>
  281. X***************
  282. X*** 23,29 ****
  283. X      "Copyright 1987,1988 by MIT Student Information Processing Board";
  284. X  
  285. X  static const char rcsid_compile_et_c[] =
  286. X!     "$Header: /afs/athena.mit.edu/user/j/jik/src/delete/et/RCS/compile_et.c,v 1.1 89/11/07 19:05:27 jik Exp $";
  287. X  #endif
  288. X  
  289. X  extern char *gensym();
  290. X--- 27,33 ----
  291. X      "Copyright 1987,1988 by MIT Student Information Processing Board";
  292. X  
  293. X  static const char rcsid_compile_et_c[] =
  294. X!     "$Header: /afs/athena.mit.edu/user/j/jik/src/delete/et/RCS/compile_et.c,v 1.2 90/06/07 21:48:57 jik Exp $";
  295. X  #endif
  296. X  
  297. X  extern char *gensym();
  298. X*** /tmp/,RCSt1018539    Thu Jun  7 23:47:19 1990
  299. X--- et_lex.lex.l    Thu Jun  7 22:54:17 1990
  300. X***************
  301. X*** 1,7 ****
  302. X--- 1,13 ----
  303. X  PC    [^\"]
  304. X  AN    [A-Z_a-z0-9]
  305. X  %{
  306. X+ #ifdef SYSV
  307. X+ #include <string.h>
  308. X+ #define index strchr
  309. X+ #define rindex strrchr
  310. X+ #else
  311. X  #include <strings.h>
  312. X+ #endif /* SYSV */
  313. X  %}
  314. X  %%
  315. X  
  316. X***************
  317. X*** 25,29 ****
  318. X  .        { return (*yytext); }
  319. X  %%
  320. X  #ifndef lint
  321. X! static char rcsid_et_lex_lex_l[] = "$Header: /afs/athena.mit.edu/user/j/jik/src/delete/et/RCS/et_lex.lex.l,v 1.2 89/11/07 19:00:35 jik Exp $";
  322. X  #endif
  323. X--- 31,35 ----
  324. X  .        { return (*yytext); }
  325. X  %%
  326. X  #ifndef lint
  327. X! static char rcsid_et_lex_lex_l[] = "$Header: /afs/athena.mit.edu/user/j/jik/src/delete/et/RCS/et_lex.lex.l,v 1.3 90/06/07 22:53:55 jik Exp $";
  328. X  #endif
  329. END_OF_FILE
  330. if test 8287 -ne `wc -c <'diff'`; then
  331.     echo shar: \"'diff'\" unpacked with wrong size!
  332. fi
  333. # end of 'diff'
  334. fi
  335. echo shar: End of shell archive.
  336. exit 0
  337.